<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): &lt;CPTPieChartDataSource&gt; Protocol Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (iOS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('protocol_c_p_t_pie_chart_data_source-p.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Instance Methods</a>  </div>
  <div class="headertitle">
<div class="title">&lt;CPTPieChartDataSource&gt; Protocol Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CPTPieChartDataSource-p" --><!-- doxytag: inherits="CPTPlotDataSource-p" -->
<p>A pie chart data source.  
 <a href="protocol_c_p_t_pie_chart_data_source-p.html#details">More...</a></p>

<p><code>#import &lt;<a class="el" href="_c_p_t_pie_chart_8h_source.html">CPTPieChart.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for &lt;CPTPieChartDataSource&gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="protocol_c_p_t_pie_chart_data_source-p__inherit__graph.png" border="0" usemap="#_3_c_p_t_pie_chart_data_source_4_inherit__map" alt="Inheritance graph"/></div>
<map name="_3_c_p_t_pie_chart_data_source_4_inherit__map" id="_3_c_p_t_pie_chart_data_source_4_inherit__map">
<area shape="rect" id="node2" href="protocol_c_p_t_plot_data_source-p.html" title="A plot data source." alt="" coords="19,86,183,117"/><area shape="rect" id="node4" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="42,6,160,37"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for &lt;CPTPieChartDataSource&gt;:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="protocol_c_p_t_pie_chart_data_source-p__coll__graph.png" border="0" usemap="#_3_c_p_t_pie_chart_data_source_4_coll__map" alt="Collaboration graph"/></div>
<map name="_3_c_p_t_pie_chart_data_source_4_coll__map" id="_3_c_p_t_pie_chart_data_source_4_coll__map">
<area shape="rect" id="node2" href="protocol_c_p_t_plot_data_source-p.html" title="A plot data source." alt="" coords="19,86,183,117"/><area shape="rect" id="node4" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="42,6,160,37"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="protocol_c_p_t_pie_chart_data_source-p-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Instance Methods</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_c_p_t_fill.html">CPTFill</a> *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_c_p_t_pie_chart_data_source-p.html#a1a14dc189512fde5a0ce1148f50364ac">sliceFillForPieChart:recordIndex:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">(Optional) Gets a fill for the given pie chart slice. This method is optional.  <a href="#a1a14dc189512fde5a0ce1148f50364ac"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(CGFloat)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_c_p_t_pie_chart_data_source-p.html#a5e1c479464fc6bdde26d5fc50e044c1a">radialOffsetForPieChart:recordIndex:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">(Optional) Offsets the slice radially from the center point. Can be used to "explode" the chart.  <a href="#a5e1c479464fc6bdde26d5fc50e044c1a"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Legends</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_c_p_t_pie_chart_data_source-p.html#a8c3e883e352b9e1091747b44355d1c1a">legendTitleForPieChart:recordIndex:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">(Optional) Gets the legend title for the given pie chart slice.  <a href="#a8c3e883e352b9e1091747b44355d1c1a"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A pie chart data source. </p>
</div><hr/><h2>Method Documentation</h2>
<a class="anchor" id="a8c3e883e352b9e1091747b44355d1c1a"></a><!-- doxytag: member="CPTPieChartDataSource&#45;p::legendTitleForPieChart:recordIndex:" ref="a8c3e883e352b9e1091747b44355d1c1a" args="(CPTPieChart *pieChart,[recordIndex] NSUInteger index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *) legendTitleForPieChart: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_p_t_pie_chart.html">CPTPieChart</a> *)&#160;</td>
          <td class="paramname"><em>pieChart</em></td>
        </tr>
        <tr>
          <td class="paramkey">recordIndex:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>(Optional) Gets the legend title for the given pie chart slice. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pieChart</td><td>The pie chart. </td></tr>
    <tr><td class="paramname">index</td><td>The data index of interest. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The title text for the legend entry for the point with the given index. If this method is not implemented or returns nil, the legend will get the title from the corresponding data label if it is a <a class="el" href="interface_c_p_t_text_layer.html" title="A Core Animation layer that displays a single line of text drawn in a uniform style.">CPTTextLayer</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a5e1c479464fc6bdde26d5fc50e044c1a"></a><!-- doxytag: member="CPTPieChartDataSource&#45;p::radialOffsetForPieChart:recordIndex:" ref="a5e1c479464fc6bdde26d5fc50e044c1a" args="(CPTPieChart *pieChart,[recordIndex] NSUInteger index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (CGFloat) radialOffsetForPieChart: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_p_t_pie_chart.html">CPTPieChart</a> *)&#160;</td>
          <td class="paramname"><em>pieChart</em></td>
        </tr>
        <tr>
          <td class="paramkey">recordIndex:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td><code> [optional]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>(Optional) Offsets the slice radially from the center point. Can be used to "explode" the chart. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pieChart</td><td>The pie chart. </td></tr>
    <tr><td class="paramname">index</td><td>The data index of interest. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The radial offset in view coordinates. Zero is no offset. </dd></dl>

</div>
</div>
<a class="anchor" id="a1a14dc189512fde5a0ce1148f50364ac"></a><!-- doxytag: member="CPTPieChartDataSource&#45;p::sliceFillForPieChart:recordIndex:" ref="a1a14dc189512fde5a0ce1148f50364ac" args="(CPTPieChart *pieChart,[recordIndex] NSUInteger index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_c_p_t_fill.html">CPTFill</a> *) sliceFillForPieChart: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_p_t_pie_chart.html">CPTPieChart</a> *)&#160;</td>
          <td class="paramname"><em>pieChart</em></td>
        </tr>
        <tr>
          <td class="paramkey">recordIndex:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td><code> [optional]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>(Optional) Gets a fill for the given pie chart slice. This method is optional. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pieChart</td><td>The pie chart. </td></tr>
    <tr><td class="paramname">index</td><td>The data index of interest. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The pie slice fill for the slice with the given index. </dd></dl>

</div>
</div>
<hr/>The documentation for this protocol was generated from the following file:<ul>
<li>Source/<a class="el" href="_c_p_t_pie_chart_8h_source.html">CPTPieChart.h</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="protocol_c_p_t_pie_chart_data_source-p.html">CPTPieChartDataSource</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
